<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class photos extends CI_Controller {
    public function Photosload()
    {
    	        	
		//------------------------------------Get photo filename----------------------------------------------------
		$query = $this->db->query('SELECT * FROM photos');
		$photoArray=array();
		$photoArray=$query->result_array();	
		
		$arrayFile = array();
    	$data = array();
    	$data['controller']='./feed';
    	$data['name_view']='gallery';
    	$data['photoArray']=$photoArray;
        $this->load->view('template',$data);
    }
}